<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FabGL: VGA/Audio/Audio.ino</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">FabGL
   </div>
   <div id="projectbrief">ESP32 Display Controller and Graphics Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('_v_g_a_2_audio_2_audio_8ino-example.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">VGA/Audio/Audio.ino</div></div>
</div><!--header-->
<div class="contents">
<p >Audio demo with GUI</p>
<div class="fragment"><div class="line"><span class="comment">/*</span></div>
<div class="line"><span class="comment">  Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - &lt;http://www.fabgl.com&gt;</span></div>
<div class="line"><span class="comment">  Copyright (c) 2019-2022 Fabrizio Di Vittorio.</span></div>
<div class="line"><span class="comment">  All rights reserved.</span></div>
<div class="line"><span class="comment"></span> </div>
<div class="line"><span class="comment"></span> </div>
<div class="line"><span class="comment">* Please contact fdivitto2013@gmail.com if you need a commercial license.</span></div>
<div class="line"><span class="comment"></span> </div>
<div class="line"><span class="comment"></span> </div>
<div class="line"><span class="comment">* This library and related software is available under GPL v3.</span></div>
<div class="line"><span class="comment"></span> </div>
<div class="line"><span class="comment">  FabGL is free software: you can redistribute it and/or modify</span></div>
<div class="line"><span class="comment">  it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><span class="comment">  the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><span class="comment">  (at your option) any later version.</span></div>
<div class="line"><span class="comment"></span> </div>
<div class="line"><span class="comment">  FabGL is distributed in the hope that it will be useful,</span></div>
<div class="line"><span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><span class="comment">  GNU General Public License for more details.</span></div>
<div class="line"><span class="comment"></span> </div>
<div class="line"><span class="comment">  You should have received a copy of the GNU General Public License</span></div>
<div class="line"><span class="comment">  along with FabGL.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &quot;<a class="code" href="fabgl_8h.html">fabgl.h</a>&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;<a class="code" href="fabui_8h.html">fabui.h</a>&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &quot;speech.h&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;loop.h&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;mario.h&quot;</span></div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><a id="_a0" name="_a0"></a><a class="code hl_class" href="classfabgl_1_1_v_g_a16_controller.html">fabgl::VGA16Controller</a> DisplayController;</div>
<div class="line"><a id="_a1" name="_a1"></a><a class="code hl_class" href="classfabgl_1_1_p_s2_controller.html">fabgl::PS2Controller</a>   PS2Controller;</div>
<div class="line">SoundGenerator         soundGenerator;</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">void</span> setup()</div>
<div class="line">{</div>
<div class="line">  <span class="comment">//Serial.begin(115200); delay(500); Serial.write(&quot;\n\nReset\n\n&quot;); // DEBUG ONLY</span></div>
<div class="line"> </div>
<div class="line">  PS2Controller.<a id="a2" name="a2"></a><a class="code hl_function" href="classfabgl_1_1_p_s2_controller_ab8520612804a921ad834b41214a99c09.html#ab8520612804a921ad834b41214a99c09">begin</a>(PS2Preset::KeyboardPort0_MousePort1, KbdMode::GenerateVirtualKeys);</div>
<div class="line"> </div>
<div class="line">  DisplayController.begin();</div>
<div class="line">  DisplayController.<a id="a3" name="a3"></a>setResolution(<a id="a4" name="a4"></a><a class="code hl_define" href="fabglconf_8h_a2d4571e9072b78877c36bf32bc9423f8.html#a2d4571e9072b78877c36bf32bc9423f8">VGA_640x480_60Hz</a>);</div>
<div class="line"> </div>
<div class="line">  <span class="comment">// adjust this to center screen in your monitor</span></div>
<div class="line">  <span class="comment">//DisplayController.moveScreen(20, -2);</span></div>
<div class="line">  <span class="comment">//DisplayController.moveScreen(-6, 0);</span></div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><span class="keyword">class </span>ChannelFrame : <span class="keyword">public</span> uiFrame {</div>
<div class="line"> </div>
<div class="line">  SineWaveformGenerator sine;</div>
<div class="line">  SquareWaveformGenerator square;</div>
<div class="line">  NoiseWaveformGenerator noise;</div>
<div class="line">  TriangleWaveformGenerator triangle;</div>
<div class="line">  SawtoothWaveformGenerator sawtooth;</div>
<div class="line">  SamplesGenerator loop = SamplesGenerator(loopSamples, <span class="keyword">sizeof</span>(loopSamples));</div>
<div class="line">  SamplesGenerator speech = SamplesGenerator(speechSamples, <span class="keyword">sizeof</span>(speechSamples));</div>
<div class="line">  SamplesGenerator mario = SamplesGenerator(marioSamples, <span class="keyword">sizeof</span>(marioSamples));</div>
<div class="line">  WaveformGenerator * curGen = <span class="keyword">nullptr</span>;</div>
<div class="line"> </div>
<div class="line">  uiLabel * volumeLabel, * frequencyLabel;</div>
<div class="line">  uiSlider * volumeSlider, * frequencySlider;</div>
<div class="line">  uiComboBox * genComboBox;</div>
<div class="line">  uiCheckBox * enableCheck;</div>
<div class="line"> </div>
<div class="line"><span class="keyword">public</span>:</div>
<div class="line"> </div>
<div class="line">  ChannelFrame(uiWindow * parent)</div>
<div class="line">   : uiFrame(parent, <span class="stringliteral">&quot;&quot;</span>, Point(0, 0), Size(408, 80))</div>
<div class="line">  {</div>
<div class="line">    <span class="keyword">static</span> <span class="keywordtype">int</span> channel_ = 0;</div>
<div class="line">    <span class="keyword">static</span> <span class="keywordtype">int</span> y = 4, x = 4;</div>
<div class="line">    <span class="keyword">static</span> <span class="keywordtype">int</span> startingFreq = 150;</div>
<div class="line"> </div>
<div class="line">    app()-&gt;moveWindow(<span class="keyword">this</span>, x, y);</div>
<div class="line">    y += size().height + 4;</div>
<div class="line">    <span class="keywordflow">if</span> (y + size().<a id="a5" name="a5"></a><a class="code hl_variable" href="displaycontroller_8h_ad12fc34ce789bce6c8a05d8a17138534.html#ad12fc34ce789bce6c8a05d8a17138534">height</a> &gt; parent-&gt;size().height) {</div>
<div class="line">      x += 25;</div>
<div class="line">      y = x;</div>
<div class="line">    }</div>
<div class="line"> </div>
<div class="line">    frameProps().resizeable = <span class="keyword">false</span>;</div>
<div class="line">    frameProps().hasCloseButton = <span class="keyword">false</span>;</div>
<div class="line"> </div>
<div class="line">    setTitleFmt(<span class="stringliteral">&quot;Channel %d&quot;</span>, ++channel_);</div>
<div class="line"> </div>
<div class="line">    <span class="comment">// volume slider</span></div>
<div class="line">    volumeLabel = <span class="keyword">new</span> uiLabel(<span class="keyword">this</span>, <span class="stringliteral">&quot;&quot;</span>, Point(5, 20));</div>
<div class="line">    volumeSlider = <span class="keyword">new</span> uiSlider(<span class="keyword">this</span>, Point(72, 19), Size(150, 17), uiOrientation::Horizontal);</div>
<div class="line">    volumeSlider-&gt;onChange = [&amp;]() {</div>
<div class="line">      volumeLabel-&gt;setTextFmt(<span class="stringliteral">&quot;Volume %d&quot;</span>, volumeSlider-&gt;position());</div>
<div class="line">      <span class="keywordflow">if</span> (curGen)</div>
<div class="line">        curGen-&gt;setVolume(volumeSlider-&gt;position());</div>
<div class="line">    };</div>
<div class="line">    volumeSlider-&gt;setup(0, 127, 16);</div>
<div class="line">    volumeSlider-&gt;setPosition(100);</div>
<div class="line"> </div>
<div class="line">    <span class="comment">// generator combobox</span></div>
<div class="line">    <span class="keyword">new</span> uiStaticLabel(<span class="keyword">this</span>, <span class="stringliteral">&quot;Type&quot;</span>, Point(230, 20));</div>
<div class="line">    genComboBox = <span class="keyword">new</span> uiComboBox(<span class="keyword">this</span>, Point(260, 20), Size(140, 16), 35);</div>
<div class="line">    genComboBox-&gt;listBoxStyle().textFont = &amp;fabgl::FONT_std_12;</div>
<div class="line">    genComboBox-&gt;textEditStyle().textFont = &amp;fabgl::FONT_std_12;</div>
<div class="line">    genComboBox-&gt;items().append(<span class="stringliteral">&quot;Sine Wave&quot;</span>);</div>
<div class="line">    genComboBox-&gt;items().append(<span class="stringliteral">&quot;Square Wave&quot;</span>);</div>
<div class="line">    genComboBox-&gt;items().append(<span class="stringliteral">&quot;Triangle Wave&quot;</span>);</div>
<div class="line">    genComboBox-&gt;items().append(<span class="stringliteral">&quot;Sawtooth Wave&quot;</span>);</div>
<div class="line">    genComboBox-&gt;items().append(<span class="stringliteral">&quot;Noise&quot;</span>);</div>
<div class="line">    genComboBox-&gt;items().append(<span class="stringliteral">&quot;Loop&quot;</span>);</div>
<div class="line">    genComboBox-&gt;items().append(<span class="stringliteral">&quot;Speech&quot;</span>);</div>
<div class="line">    genComboBox-&gt;items().append(<span class="stringliteral">&quot;Mario&quot;</span>);</div>
<div class="line">    genComboBox-&gt;selectItem(0);</div>
<div class="line">    genComboBox-&gt;onChange = [&amp;]() {</div>
<div class="line">      setGenerator(genComboBox-&gt;selectedItem());</div>
<div class="line">    };</div>
<div class="line"> </div>
<div class="line">    <span class="comment">// frequency slider</span></div>
<div class="line">    frequencyLabel = <span class="keyword">new</span> uiLabel(<span class="keyword">this</span>, <span class="stringliteral">&quot;&quot;</span>, Point(5, 39));</div>
<div class="line">    frequencySlider = <span class="keyword">new</span> uiSlider(<span class="keyword">this</span>, Point(72, 38), Size(330, 17), uiOrientation::Horizontal);</div>
<div class="line">    frequencySlider-&gt;onChange = [&amp;]() {</div>
<div class="line">      frequencyLabel-&gt;setTextFmt(<span class="stringliteral">&quot;Freq %d Hz&quot;</span>, frequencySlider-&gt;position());</div>
<div class="line">      <span class="keywordflow">if</span> (curGen)</div>
<div class="line">        curGen-&gt;setFrequency(frequencySlider-&gt;position());</div>
<div class="line">    };</div>
<div class="line">    frequencySlider-&gt;setup(0, 8000, 500);</div>
<div class="line">    frequencySlider-&gt;setPosition(startingFreq);</div>
<div class="line">    startingFreq += 50;</div>
<div class="line"> </div>
<div class="line">    <span class="comment">// enable checkbox</span></div>
<div class="line">    <span class="keyword">new</span> uiStaticLabel(<span class="keyword">this</span>, <span class="stringliteral">&quot;Enable&quot;</span>, Point(5, 76-17));</div>
<div class="line">    enableCheck = <span class="keyword">new</span> uiCheckBox(<span class="keyword">this</span>, Point(77, 75-17), Size(17, 17));</div>
<div class="line">    enableCheck-&gt;onChange = [&amp;]() {</div>
<div class="line">      <span class="keywordflow">if</span> (curGen)</div>
<div class="line">        curGen-&gt;enable(enableCheck-&gt;checked());</div>
<div class="line">    };</div>
<div class="line"> </div>
<div class="line">    <span class="comment">// set default generator</span></div>
<div class="line">    setGenerator(0);</div>
<div class="line">  }</div>
<div class="line"> </div>
<div class="line">  <span class="keywordtype">void</span> setGenerator(<span class="keywordtype">int</span> index) {</div>
<div class="line">    soundGenerator.detach(curGen);</div>
<div class="line">    <span class="keywordflow">switch</span> (index) {</div>
<div class="line">      <span class="keywordflow">case</span> 0:</div>
<div class="line">        curGen = &amp;sine;</div>
<div class="line">        <span class="keywordflow">break</span>;</div>
<div class="line">      <span class="keywordflow">case</span> 1:</div>
<div class="line">        curGen = &amp;square;</div>
<div class="line">        <span class="keywordflow">break</span>;</div>
<div class="line">      <span class="keywordflow">case</span> 2:</div>
<div class="line">        curGen = &amp;triangle;</div>
<div class="line">        <span class="keywordflow">break</span>;</div>
<div class="line">      <span class="keywordflow">case</span> 3:</div>
<div class="line">        curGen = &amp;sawtooth;</div>
<div class="line">        <span class="keywordflow">break</span>;</div>
<div class="line">      <span class="keywordflow">case</span> 4:</div>
<div class="line">        curGen = &amp;noise;</div>
<div class="line">        <span class="keywordflow">break</span>;</div>
<div class="line">      <span class="keywordflow">case</span> 5:</div>
<div class="line">        curGen = &amp;loop;</div>
<div class="line">        <span class="keywordflow">break</span>;</div>
<div class="line">      <span class="keywordflow">case</span> 6:</div>
<div class="line">        curGen = &amp;speech;</div>
<div class="line">        <span class="keywordflow">break</span>;</div>
<div class="line">      <span class="keywordflow">case</span> 7:</div>
<div class="line">        curGen = &amp;mario;</div>
<div class="line">        <span class="keywordflow">break</span>;</div>
<div class="line">    }</div>
<div class="line">    soundGenerator.attach(curGen);</div>
<div class="line">    curGen-&gt;enable(enableCheck-&gt;checked());</div>
<div class="line">    curGen-&gt;setFrequency(frequencySlider-&gt;position());</div>
<div class="line">  }</div>
<div class="line">};</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><span class="keyword">class </span>CommandsFrame : <span class="keyword">public</span> uiFrame {</div>
<div class="line"> </div>
<div class="line"><span class="keyword">public</span>:</div>
<div class="line">  CommandsFrame(uiWindow * parent)</div>
<div class="line">   : uiFrame(parent, <span class="stringliteral">&quot;Main Controls&quot;</span>, Point(500, 4), Size(133, 200))</div>
<div class="line">  {</div>
<div class="line">    frameStyle().titleFont = &amp;fabgl::FONT_std_12;</div>
<div class="line">    frameProps().resizeable = <span class="keyword">false</span>;</div>
<div class="line">    frameProps().hasMaximizeButton = <span class="keyword">false</span>;</div>
<div class="line">    frameProps().hasMinimizeButton = <span class="keyword">false</span>;</div>
<div class="line">    frameProps().hasCloseButton = <span class="keyword">false</span>;</div>
<div class="line"> </div>
<div class="line">    <span class="keyword">auto</span> addChannelBtn = <span class="keyword">new</span> uiButton(<span class="keyword">this</span>, <span class="stringliteral">&quot;Add Channel&quot;</span>, Point(7, 22), Size(80, 16));</div>
<div class="line">    addChannelBtn-&gt;onClick = [=]() {</div>
<div class="line">      <span class="keywordflow">if</span> (heap_caps_get_free_size(MALLOC_CAP_8BIT) &lt; 5000)</div>
<div class="line">        app()-&gt;messageBox(<span class="stringliteral">&quot;Out of memory!&quot;</span>, <span class="stringliteral">&quot;I&#39;m sorry, there is no more memory available!&quot;</span>, <span class="stringliteral">&quot;OK&quot;</span>);</div>
<div class="line">      <span class="keywordflow">else</span></div>
<div class="line">        <span class="keyword">new</span> ChannelFrame(parent);</div>
<div class="line">    };</div>
<div class="line"> </div>
<div class="line">    <span class="keyword">auto</span> resetBtn = <span class="keyword">new</span> uiButton(<span class="keyword">this</span>, <span class="stringliteral">&quot;Reset&quot;</span>, Point(7, 45), Size(80, 16));</div>
<div class="line">    resetBtn-&gt;onClick = [=]() {</div>
<div class="line">      <span class="keywordflow">if</span> (app()-&gt;messageBox(<span class="stringliteral">&quot;Reset ESP32&quot;</span>, <span class="stringliteral">&quot;Are you sure?&quot;</span>, <span class="stringliteral">&quot;Yes&quot;</span>, <span class="stringliteral">&quot;No&quot;</span>, <span class="keyword">nullptr</span>, uiMessageBoxIcon::Question) == uiMessageBoxResult::Button1)</div>
<div class="line">        ESP.restart();</div>
<div class="line">    };</div>
<div class="line">    </div>
<div class="line">    <span class="comment">// global enable checkbox</span></div>
<div class="line">    <span class="keyword">new</span> uiStaticLabel(<span class="keyword">this</span>, <span class="stringliteral">&quot;Enable&quot;</span>, Point(7, 70));</div>
<div class="line">    <span class="keyword">auto</span> enableCheck = <span class="keyword">new</span> uiCheckBox(<span class="keyword">this</span>, Point(48, 68), Size(17, 17));</div>
<div class="line">    enableCheck-&gt;setChecked(<span class="keyword">true</span>);</div>
<div class="line">    enableCheck-&gt;onChange = [=]() {</div>
<div class="line">      soundGenerator.play(enableCheck-&gt;checked());</div>
<div class="line">    };</div>
<div class="line"> </div>
<div class="line">    <span class="comment">// main volume slider</span></div>
<div class="line">    <span class="keyword">auto</span> volumeLabel = <span class="keyword">new</span> uiLabel(<span class="keyword">this</span>, <span class="stringliteral">&quot;&quot;</span>, Point(90, 182));</div>
<div class="line">    <span class="keyword">auto</span> volumeSlider = <span class="keyword">new</span> uiSlider(<span class="keyword">this</span>, Point(100, 20), Size(17, 160), uiOrientation::Vertical);</div>
<div class="line">    volumeSlider-&gt;onChange = [=]() {</div>
<div class="line">      volumeLabel-&gt;setTextFmt(<span class="stringliteral">&quot;Vol %d&quot;</span>, volumeSlider-&gt;position());</div>
<div class="line">      soundGenerator.setVolume(volumeSlider-&gt;position());</div>
<div class="line">    };</div>
<div class="line">    volumeSlider-&gt;setup(0, 127, 16);</div>
<div class="line">    volumeSlider-&gt;setPosition(100);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">  }</div>
<div class="line"> </div>
<div class="line">};</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><span class="keyword">class </span>MyApp : <span class="keyword">public</span> uiApp {</div>
<div class="line"> </div>
<div class="line">  <span class="keywordtype">void</span> init() {</div>
<div class="line"> </div>
<div class="line">    rootWindow()-&gt;frameStyle().backgroundColor = RGB888(0, 0, 64);</div>
<div class="line"> </div>
<div class="line">    <span class="keyword">new</span> ChannelFrame(rootWindow());</div>
<div class="line">    <span class="keyword">new</span> ChannelFrame(rootWindow());</div>
<div class="line">    <span class="keyword">new</span> ChannelFrame(rootWindow());</div>
<div class="line">    <span class="keyword">new</span> ChannelFrame(rootWindow());</div>
<div class="line"> </div>
<div class="line">    <span class="keyword">new</span> CommandsFrame(rootWindow());</div>
<div class="line"> </div>
<div class="line">    soundGenerator.play(<span class="keyword">true</span>);</div>
<div class="line"> </div>
<div class="line">  }</div>
<div class="line">} app;</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">void</span> loop()</div>
<div class="line">{</div>
<div class="line">  app.run(&amp;DisplayController);</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"> </div>
<div class="ttc" id="aclassfabgl_1_1_p_s2_controller_ab8520612804a921ad834b41214a99c09_html_ab8520612804a921ad834b41214a99c09"><div class="ttname"><a href="classfabgl_1_1_p_s2_controller_ab8520612804a921ad834b41214a99c09.html#ab8520612804a921ad834b41214a99c09">fabgl::PS2Controller::begin</a></div><div class="ttdeci">static void begin(gpio_num_t port0_clkGPIO, gpio_num_t port0_datGPIO, gpio_num_t port1_clkGPIO=GPIO_UNUSED, gpio_num_t port1_datGPIO=GPIO_UNUSED)</div><div class="ttdoc">Initializes PS2 device controller.</div><div class="ttdef"><b>Definition:</b> <a href="ps2controller_8cpp_source.html#l01115">ps2controller.cpp:1115</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_p_s2_controller_html"><div class="ttname"><a href="classfabgl_1_1_p_s2_controller.html">fabgl::PS2Controller</a></div><div class="ttdoc">The PS2 device controller class.</div><div class="ttdef"><b>Definition:</b> <a href="ps2controller_8h_source.html#l00082">ps2controller.h:82</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_v_g_a16_controller_html"><div class="ttname"><a href="classfabgl_1_1_v_g_a16_controller.html">fabgl::VGA16Controller</a></div><div class="ttdoc">Represents the VGA 16 colors bitmapped controller.</div><div class="ttdef"><b>Definition:</b> <a href="vga16controller_8h_source.html#l00082">vga16controller.h:82</a></div></div>
<div class="ttc" id="adisplaycontroller_8h_ad12fc34ce789bce6c8a05d8a17138534_html_ad12fc34ce789bce6c8a05d8a17138534"><div class="ttname"><a href="displaycontroller_8h_ad12fc34ce789bce6c8a05d8a17138534.html#ad12fc34ce789bce6c8a05d8a17138534">height</a></div><div class="ttdeci">uint8_t height</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00003">displaycontroller.h:3</a></div></div>
<div class="ttc" id="afabgl_8h_html"><div class="ttname"><a href="fabgl_8h.html">fabgl.h</a></div><div class="ttdoc">This file is the all in one include file. Application can just include this file to use FabGL library...</div></div>
<div class="ttc" id="afabglconf_8h_a2d4571e9072b78877c36bf32bc9423f8_html_a2d4571e9072b78877c36bf32bc9423f8"><div class="ttname"><a href="fabglconf_8h_a2d4571e9072b78877c36bf32bc9423f8.html#a2d4571e9072b78877c36bf32bc9423f8">VGA_640x480_60Hz</a></div><div class="ttdeci">#define VGA_640x480_60Hz</div><div class="ttdef"><b>Definition:</b> <a href="fabglconf_8h_source.html#l00246">fabglconf.h:246</a></div></div>
<div class="ttc" id="afabui_8h_html"><div class="ttname"><a href="fabui_8h.html">fabui.h</a></div><div class="ttdoc">This file contains all classes related to FabGL Graphical User Interface.</div></div>
</div><!-- fragment --> </div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Aug 29 2022 13:52:04 for FabGL by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
  </ul>
</div>
</body>
</html>
